package com.xpffly.design.handler.service.impl;

import com.xpffly.design.handler.service.Women;

/**
 * @Author: xpengfei
 * @Date: 2021/4/7 21:02
 * @Description：女性实现类
 */
public class WomenImpl implements Women {
    /**
     * 描述妇女个人情况
     * 0：未出嫁
     * 1：已出嫁
     * 2：夫死
     */
    private int type = 0;

    /**
     * 构造函数传递过来请求
     *
     * @param type
     * @param request
     */
    public WomenImpl(int type, String request) {
        this.type = type;

        switch (this.type) {
            case 0:
                this.request = "女儿的请求是：" + request;
                break;
            case 1:
                this.request = "妻子的请求是：" + request;
                break;
            case 2:
                this.request = "母亲的请求是：" + request;
                break;
        }
        this.request = request;
    }

    /**
     * 妇女的请示信息
     */
    private String request;

    public int getType() {
        return this.type;
    }

    public String getRequest() {
        return this.request;
    }
}
